package ch.ethz.fcl.metrobuzz.controller.gui.twl.frames;

public class ToggleFrame implements Runnable {
	private final MBFrame frame;

	public ToggleFrame(MBFrame frame) {
		this.frame = frame;
	}

	public void run() {
		if (frame.isVisible()) {
			frame.setVisible(false);
		} else {
			frame.setVisible(true);
		}
	}
}
